package org.jeecg.modules.order.service;

import com.itextpdf.text.DocumentException;
import org.jeecg.modules.order.entity.KuybOrderPayment;
import org.jeecg.modules.order.entity.KuybOrderPolicy;
import org.jeecg.modules.order.entity.KuybOrderChanp;
import org.jeecg.modules.order.entity.KuybOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date:   2021-09-09
 * @Version: V1.0
 */
public interface IKuybOrderService extends IService<KuybOrder> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(KuybOrder kuybOrder, List<KuybOrderPayment> kuybOrderPaymentList, List<KuybOrderPolicy> kuybOrderPolicyList, List<KuybOrderChanp> kuybOrderChanpList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(KuybOrder kuybOrder, List<KuybOrderPayment> kuybOrderPaymentList, List<KuybOrderPolicy> kuybOrderPolicyList, List<KuybOrderChanp> kuybOrderChanpList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	public void sendEmail(String orderId);

    Integer audit(String dingdbh, String auditStatus, String auditMemo);

	void getElectronicPolicy(String id,String userToken) throws Exception;
}
